home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Chip 2001 December
/
Chip_2001-12_cd1.bin
/
zkuste
/
tuning
/
download
/
xteq
/
setup.exe
/
{app}
/
plugins
/
XQ Start in MyDocs 1.xpl
< prev
next >
Wrap
Text File
|
2001-04-13
|
1KB
|
46 lines
"FILE"="Xteq Systems X-Setup Plugin 5.0"
"TYPE"="6"
"COUNT"="1"
"UIPATH"="Appearance\System\Open Dialog"
"NAME"="Start in My Documents"
"LANGUAGE"="VBScript"
"TEXT 1"="Open/Save starts in My Documents"
"DESCRIPTION 1"="When you open or save a file, some programs start in My Documents, instead of C:\. With this program you can disable this behavior."
"DESCRIPTION 2"="Bear in mind that the majority of programs ignore this setting."
"COMMENT 1"="Thanks to Axcel216 [axcel216@aol.com] and TeXHeX [TeXHeX@xteq.com] for the idea!"
"VERSION"="1.0"
"AUTHOR"="Neil R. Turner (totalxs@hotmail.com) for Xteq Systems"
"COPYRIGHT"="Copyright ⌐ Xteq Systems - All Rights Reserved"
"CONTACTURL"="http://www.neilrt.cwc.net/"
'Declaration of some constants
sP="HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Documents\DisableStartInMyDocs"
'Called when the Plugin is started
SUB Plugin_Initialize
s=RegReadValue(sP)
if s=0 OR IsEmpty(s) then
Call SetUIElement(1,true)
end if
' I think there should be a SetUIElephant :)
END SUB
'Called when the Plugin should validate the Data the user has entered
SUB Plugin_CheckData(ElementIndex)
END SUB
'Called when the Plugin should apply the changes
SUB Plugin_Apply(ElementIndex,ElementSubIndex)
s=GetUIElement(1)
if s=true then
Call RegWriteValue(sP,0,2)
else
Call RegWriteValue(sP,1,2)
end if
END SUB
'Called when the Plugin is about to be removed from memory
SUB Plugin_Terminate
END SUB